package com.tpf.spring.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Component;

/**
 * <p> </p >
 *
 * @author : tianpf
 * @version :  Person.java,v 1.0, 2021/2/26-16:07 tianpengfei Exp $
 */
//@Component
public class Person {
	private String name;
	private int age;

//	@Autowired
	private Cat cat;

//	@Lookup
	public Cat getCat() {
		return cat;
	}


	public void setCat(Cat cat) {
		this.cat = cat;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

//	@Override
//	public String toString() {
//		return "Person{" +
//				"name='" + name + '\'' +
//				", age=" + age +
//				", cat=" + cat +
//				'}';
//	}
}
